﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.Models
{
    public static class EnumExtension 
    {
        public static short ValueShort(this Enum e)
        {
            return Convert.ToInt16(e);
        }
        public static int ValueInt(this Enum e)
        {
            return Convert.ToInt32(e);
        }
    }
}
